home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000010_icon-group-sender _Mon Jan 6 11:57:48 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 6 Jan 1997 13:49:07 MST
  2. Date: Mon, 6 Jan 1997 11:57:48 -0600
  3. Message-Id: <199701061757.LAA05351@ns1.computek.net>
  4. Mime-Version: 1.0
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. From: gep2@computek.net
  8. Subject: Another Question from the Neophyte
  9. To: icon-group@cs.arizona.edu
  10. X-Mailer: SPRY Mail Version: 04.00.06.17
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13. Content-Length: 715
  14.  
  15. >... I haven't found a good way to move
  16. backwards, besides first reversing a string and then scanning forward
  17. (which is functionally scanning backwards).
  18.  
  19. >...I did manage to find a solution, but isn't there less cumbersome way of
  20. scanning backwards than using reverse()?
  21.  
  22. There are a variety of kluges which can be used, but honestly I think that often 
  23. the most effective way simply is to use reverse()... since then everything works 
  24. in its most natural way.
  25.  
  26. There has been talk of implementing a "&direction" item which could be set 
  27. either to +1 or -1 to set the scanning direction, but nobody seems to be very 
  28. excited about that as a general feature.
  29.  
  30. Gordon Peterson
  31. http://www.computek.net/public/gep2/
  32.  
  33.